﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;
using BUS;
using DTO;

namespace QuanLyNhaSach.usercontrol
{
    public partial class PhieuThuTien : UserControl
    {
        public PhieuThuTien()
        {
            InitializeComponent();
        }

        private void PhieuThuTien_Load(object sender, EventArgs e)
        {
            PhieuThuTienBUS bus = new PhieuThuTienBUS();
            List<PhieuThuTienDTO> dsPhieuThuTien = bus.GetAll();
            dgvPhieuThuTien.DataSource = dsPhieuThuTien;
        }

        private void btnThem_Click(object sender, EventArgs e)
        {
            frmThemPhieuThuTien frm = new frmThemPhieuThuTien();
            frm.Show();
        }
    }
}
